# Maintainer: Jiachen Yang <farseerfc@gmail.com>
# AUR Maintainer: Sam Stuewe <halosghost at archlinux dot info>
# Contributor: Chaoswizard <chaoswizard@gmail.com>
_name=feedgenerator
pkgname="python-${_name}"
pkgver=1.9.2
pkgrel=4
pkgdesc="Standalone version of django.utils.feedgenerator (python3)."
url="https://pypi.org/project/feedgenerator/"
arch=('any')
license=('GPL')
depends=('python' 'python-pytz' 'python-six')
makedepends=('python-distribute' 'python-nose')
source=("https://pypi.python.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
sha512sums=('3f9799a8008cf456635bacce87699c3fa00ac990ed675a92dbdccf898fd189c8908109a27bb393e9f25bda7f880c66c40fc3d1179d09e579be8125c70bf1b7a9')

build() {
  cd "${_name}-${pkgver}"
  python ./setup.py build
}

package() {
  cd "${_name}-${pkgver}"
  python ./setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}


check() {
  cd "${_name}-${pkgver}"
  nosetests
}
